package project.newCode;
import project.hulpPakket.Point3f;
import project.hulpPakket.Vector3f;
public class Ray {
	// Every Ray should at least have a starting point and a direction
	private Point3f origin;
	private Vector3f direction;
	/*
	 * Default constructor
	 */
	public Ray()
	{
		setOrigin(new Point3f(0,0,0));
		setDirection(new Vector3f(1,1,1));
	}
	/*
	 * More elaborate constructor
	 */
	public Ray(Point3f originv, Vector3f directionv){
		setOrigin(originv);
		setDirection(directionv);
	}
	public Point3f getOrigin() {
		return origin;
	}
	public void setOrigin(Point3f origin) {
		this.origin = origin;
	}
	public Vector3f getDirection() {
		return direction;
	}
	public void setDirection(Vector3f direction) {
		this.direction = direction;
	}
	public String toString() {
		return "origin : "+origin.toString()+" direction "+direction.toString();
	}
	
}
